<?php
/**
 * Created by PhpStorm.
 * User: yuyi
 * Date: 2017/9/9
 * Time: 17:15
 */

namespace app\common\validate;


use think\Validate;

class Student extends Validate
{

    protected $rule =[
        ['true_name','require|length:1,20','姓名必须|姓名长度1-20'],
        ['username','require|length:1,16','用户名必须|用户名长度1-16'],
        ['mobile','require|length:1,11','手机号必须|手机号长度1-11'],
        ['id_number','require|length:1,18','身份证号必须|身份证长度1-18'],

    ];
}